ADD_DEFINITIONS(-Wall -Wconversion -O3 -fPIC)

ADD_LIBRARY(svm 
  svm.cpp
  libsvm.cpp #wrapper
)

ADD_EXECUTABLE(svm-predict
  svm-predict.cpp
)

TARGET_LINK_LIBRARIES(svm-predict
  svm
  m
)

ADD_EXECUTABLE(svm-train
  svm-train.cpp
)

TARGET_LINK_LIBRARIES(svm-train
  svm
  m
)

ADD_EXECUTABLE(svm-scale
  svm-scale.cpp
)

ADD_EXECUTABLE(libsvm_main
  libsvm.h
  libsvm_main.cc
)

TARGET_LINK_LIBRARIES(libsvm_main
  svm
  m
  ${Boost_LIBRARIES}
  helper
)

